<?php

namespace Gwit\PlateformBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Gwit\PlateformBundle\Entity\Widget
 */
class Widget
{
    /**
     * @var integer $id
     */
    private $id;

    /**
     * @var string $name
     */
    private $name;

    /**
     * @var integer $monitor_id
     */
    private $monitor_id;

    /**
     * @var integer $position
     */
    private $position;

    /**
     * @var datetime $dateCreated
     */
    private $dateCreated;

    /**
     * @var integer $favorite
     */
    private $favorite;

    /**
     * @var integer $activated
     */
    private $activated;

    /**
     * @var integer $minimized
     */
    private $minimized;

    /**
     * @var integer $locked
     */
    private $locked;

    /**
     * @var integer $height
     */
    private $height;

    /**
     * @var integer $width
     */
    private $width;

    /**
     * @var string $coordX (en pixel)
     */
    private $coordX;

    /**
     * @var string $coordY
     */
    private $coordY;
    
    /**
     *
     * @var type 
     */
    private $user_id;
    
    /**
     *
     * @var type 
     */
    private $id_family;
    
 

    /**
     * Constructor
     * Constructeur initialise les dates 
     */
    public function __construct(){
        $this->dateCreated = new \Datetime();
        //Default non favori
        $this->favorite = 0;
        //Default non locked
        $this->locked = 0;
        //Default activé (visible)
        $this->activated = 1;
        $this->width = 500;
        $this->height = 500;
        $this->coordX = 0;
        $this->coordY = 0;
        $this->position = 0;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }
    
    /**
     *
     * @return type 
     */
    public function getUserId(){
        return $this->user_id;
    }
    
    /**
     *
     * @param type $userId 
     */
    public function setUserId($userId){
        $this->user_id = $userId;
    }
    
    /**
     * Set name
     *
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set monitor_id
     *
     * @param integer $monitorId
     */
    public function setMonitorId($monitorId)
    {
        $this->monitor_id = $monitorId;
    }

    /**
     * Get monitor_id
     *
     * @return integer 
     */
    public function getMonitorId()
    {
        return $this->monitor_id;
    }

    /**
     * Set position
     *
     * @param integer $position
     */
    public function setPosition($position)
    {
        $this->position = $position;
    }

    /**
     * Get position
     * 
     * @return integer 
     */
    public function getPosition()
    {
        return $this->position;
    }

    /**
     * Set dateCreated
     *
     * @param datetime $dateCreated
     */
    public function setDateCreated($dateCreated)
    {
        $this->dateCreated = $dateCreated;
    }

    /**
     * Get dateCreated
     *
     * @return datetime 
     */
    public function getDateCreated()
    {
        return $this->dateCreated;
    }

    /**
     * Set favorite
     *
     * @param integer $favorite
     */
    public function setFavorite($favorite)
    {
        $this->favorite = $favorite;
    }

    /**
     * Get favorite
     *
     * @return integer 
     */
    public function getFavorite()
    {
        return $this->favorite;
    }

    /**
     * Set activated
     *
     * @param integer $activated
     */
    public function setActivated($activated)
    {
        $this->activated = $activated;
    }

    /**
     * Get activated
     *
     * @return integer 
     */
    public function getActivated()
    {
        return $this->activated;
    }

    /**
     * Set minimized
     *
     * @param integer $minimized
     */
    public function setMinimized($minimized)
    {
        $this->minimized = $minimized;
    }

    /**
     * Get minimized
     *
     * @return integer 
     */
    public function getMinimized()
    {
        return $this->minimized;
    }

    /**
     * Set locked
     *
     * @param integer $locked
     */
    public function setLocked($locked)
    {
        $this->locked = $locked;
    }

    /**
     * Get locked
     *
     * @return integer 
     */
    public function getLocked()
    {
        return $this->locked;
    }

    /**
     * Set height
     *
     * @param integer $height
     */
    public function setHeight($height)
    {
        $this->height = $height;
    }

    /**
     * Get height
     *
     * @return integer 
     */
    public function getHeight()
    {
        return $this->height;
    }

    /**
     * Set width
     *
     * @param integer $width
     */
    public function setWidth($width)
    {
        $this->width = $width;  
    }

    /**
     * Get width
     *
     * @return integer 
     */
    public function getWidth()
    {
        return $this->width;
    }

    /**
     * Set coordX
     *
     * @param float $coordX
     */
    public function setCoordX($coordX)
    {
        $this->coordX = $coordX;
    }

    /**
     * Get coordX
     *
     * @return float 
     */
    public function getCoordX()
    {
        return $this->coordX;
    }

    /**
     * Set coordY
     *
     * @param float $coordY
     */
    public function setCoordY($coordY)
    {
        $this->coordY = $coordY;
    }

    /**
     * Get coordY
     *
     * @return float 
     */
    public function getCoordY()
    {
        return $this->coordY;
    }
    
       public function getIdFamily(){
        return $this->id_family;
    }
    
    public function setIdFamily($id_family){
        $this->id_family = $id_family;
    }
}